package com.csg.service.entity;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

/**
 * @author george
 */
@Data
public class Role implements GrantedAuthority {

    private String name;

    public Role() {
    }

    public Role(String name) {
        this.name = name;
    }

    @Override
    public String getAuthority() {
        return name;
    }
}
